#pragma once
#include<Windows.h>
#include<set>
#include<iostream>
class JpgModule
{
private:
	byte fileHead[2] = { 0xff,0xd8 };
	std::set<int> myset;
	int fileSize = 0;
	
	DWORD location = 0;
	


	//0xffd8 0xffe1 0xffe0~0xffef 0xffdb 0xffc0 0xffc4 0xffdd 0xffda 0xffd9
public:
	JpgModule();
	~JpgModule();

	const static int identity = 2;

	const static int headSize = 2;

	DWORD getLocation();
	void setLocation(DWORD location);

	byte* getFileHead();

	int getFileSize();
	void setFileSize(int fileSize);

	bool parseFile(byte* buffer,int length);
};

